﻿@model LWJ_Tp_final_Administracion.Controllers.Registro
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Agregar</title>
</head>
<body>
      @if (ViewBag.LogError == true)
    {
        <div class="alert alert-danger" role="alert">El Nombre de usuario ya esta en uso</div>
    }
          @if (ViewBag.Error == true)
    {
        <div class="alert alert-danger" role="alert">Se produjo un error al agregar el usuario</div>
    }
    <label style="padding-top:10em">
        <div class="panel panel-default">
            <div class="panel-heading">Agregar Usuario</div>
            <div class="panel-body">
                <form method="post">
                    <div>
                        @Html.LabelFor(x => x.UserName)
                        @Html.TextBoxFor(x => x.UserName)
                        @Html.ValidationMessageFor(x => x.UserName)
                    </div>
                    <div>
                        @Html.LabelFor(x => x.Password)
                        @Html.PasswordFor(x => x.Password)
                        @Html.ValidationMessageFor(x => x.Password)
                    </div>
                    <button type="submit" class="btn btn-default">AGREGAR</button>
                </form>
            </div>
        </div>
    </label>
</body>
</html>
